import Vue from 'vue'
//导入路由
import VueRouter from 'vue-router'
// vue使用路由插件
Vue.use(VueRouter)
// 新建路由实例


import TreeElment from "@/components/TreeElment.vue";
import HelloWorld from "@/components/HelloWorld.vue";

const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: HelloWorld,
        },
        {
            path: '/tree',
            component: TreeElment,
        }
    ],
})
export default router
